package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CLocationDao;
import gov.ccswj.modules.ccbusiness.entity.CLocationEntity;
import gov.ccswj.modules.ccbusiness.service.CLocationService;



@Service("cLocationService")
public class CLocationServiceImpl implements CLocationService {
	@Autowired
	private CLocationDao cLocationDao;
	
	@Override
	public CLocationEntity queryObject(Integer id){
		return cLocationDao.queryObject(id);
	}
	
	@Override
	public List<CLocationEntity> queryList(Map<String, Object> map){
		return cLocationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cLocationDao.queryTotal(map);
	}
	
	@Override
	public void save(CLocationEntity cLocation){
		cLocationDao.save(cLocation);
	}
	
	@Override
	public void update(CLocationEntity cLocation){
		cLocationDao.update(cLocation);
	}
	
	@Override
	public void delete(Integer id){
		cLocationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cLocationDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cLocationDao.delete(entname);
		
	}
}
